package _interface.Exer3;

public class ElectricVehicle extends Vehicle implements IPower {

    public ElectricVehicle(String brand, String color) {
        this.setBrand(brand);
        this.setColor(color);
    }

    @Override
    public void run() {
        super.run();
        power();
        System.out.println("ElectricVehicle...running...");
    }

    @Override
    public void power() {
        System.out.println("充电");
    }
}
